package com.company;

import java.util.Scanner;

public class Main30 {
    public static void main(String[] args) {
        Scanner sr=new Scanner(System.in);
        System.out.println("输入圆的半径");
        double r=sr.nextDouble();

        double v=4.0/3.0*3.1415127*r*r*r;
        System.out.println(v);
        System.out.println("保留三位小数");
       v=(double) Math.round(v* 1000) / 1000;
        System.out.println(v);
    }
}
